CXXFLAGS=-I.

all: Server Client

Server: LDLIBS=-lIce
Server: Server.o FileTransfer.o
Server.o: Server.cpp FileTransfer.h

Client: LDLIBS=-lIce
Client: Client.o FileTransfer.o
Client.o: Client.cpp FileTransfer.h

%.h %.cpp: %.ice
	slice2cpp -I/usr/share/slice $<

clean:
	rm -f *.o Server Client FileTransfer.h FileTransfer.cpp *~
